package com.jm.api;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kong
 */
@Tag(name = "", description = "Redis多键Hash示例")
@RestController
public class RedisMultiKeyHashExampleApi {
//    private final HashOperations<String, String, Object> hashOperations;
//
//    @Autowired
//    public RedisMultiKeyHashExampleApi(HashOperations<String, String, Object> hashOperations) {
//        this.hashOperations = hashOperations;
//    }
//
//    public Object get(String k1, String k2) {
//        String k = "example:";
//        this.hashOperations.put(k, "1:2", 1);
//
//
//        return this.hashOperations.get(k1, k2);
//    }
//
//    public void set() {
//        String k = "example:";
//        this.hashOperations.put(k, "1:2", 1);
//    }
}
